home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_S_e_l_e_c_t_i_o_n_B_o_x - The SelectionBox widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/SelectioB.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- SelectionBox is a general dialog widget that allows the user
- to select one item from a list. By default a SelectionBox
- includes the following:
-
- +o A scrolling list of alternatives
-
- +o An editable text field for the selected alternative
-
- +o Labels for the list and text field
-
- +o Three or four buttons
-
- The default button labels are _O_K, _C_a_n_c_e_l, and _H_e_l_p. By
- default an _A_p_p_l_y button is also created; if the parent of
- the SelectionBox is a DialogShell it is managed, and
- otherwise it is unmanaged. Additional children may be added
- to the SelectionBox after creation. The first child is used
- as a work area. The value of _X_m_N_c_h_i_l_d_P_l_a_c_e_m_e_n_t determines
- if the work area is placed above or below the Text area, or
- above or below the List area. Additional children are laid
- out in the following manner:
-
- +o Menubar - The first menu bar child is placed at the top
- of the window.
-
- +o Buttons - All _X_m_P_u_s_h_B_u_t_t_o_n widgets or gadgets, and
- their subclasses are placed after the _O_K button in the
- order of their creation.
-
- +o The layout of additional children which are not in the
- above categories is undefined.
-
- The user can select an item in two ways: by scrolling
- through the list and selecting the desired item or by
- entering the item name directly into the text edit area.
- Selecting an item from the list causes that item name to
- appear in the selection text edit area.
-
- The user may select a new item as many times as desired.
- The item is not actually selected until the user presses the
- _O_K PushButton.
-
- The default value for the _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d resource
- _X_m_N_c_a_n_c_e_l_B_u_t_t_o_n is the Cancel button unless _X_m_N_d_i_a_l_o_g_T_y_p_e is
- _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D, when the default is NULL. The default
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- value for the _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d resource _X_m_N_d_e_f_a_u_l_t_B_u_t_t_o_n is
- the OK button unless _X_m_N_d_i_a_l_o_g_T_y_p_e is _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D, when
- the default is NULL.
-
- For SelectionBox and its subclasses, the default value for
- _X_m_N_i_n_i_t_i_a_l_F_o_c_u_s is the text edit area.
-
- The user can specify resources in a resource file for the
- automatically created widgets and gadgets of SelectionBox.
- The following list identifies the names of these widgets (or
- gadgets) and the associated SelectionBox areas.
-
- +o List Items Label - "Items"
-
- +o List Items - "ItemsList"
-
- +o Selection Label - "Selection"
-
- +o Selection Text - "Text"
-
- +o Selection Separator - "Separator"
-
- CCCCllllaaaasssssssseeeessss
- SelectionBox inherits behavior and resources from _C_o_r_e,
- _C_o_m_p_o_s_i_t_e, _C_o_n_s_t_r_a_i_n_t, _X_m_M_a_n_a_g_e_r, and _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d
- Classes.
-
- The class pointer is _x_m_S_e_l_e_c_t_i_o_n_B_o_x_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _X_m_S_e_l_e_c_t_i_o_n_B_o_x.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _____________________________________________________________________________________________________
- XmNapplyCallback XmCCallback XtCallbackList NULL C
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- XmNapplyLabelString XmCApplyLabelString XmString dynamic CSG
- XmNcancelCallback XmCCallback XtCallbackList NULL C
- XmNcancelLabelString XmCCancelLabelString XmString dynamic CSG
- XmNchildPlacement XmCChildPlacement unsigned char XmPLACE_ABOVE_SELECTION CSG
- XmNdialogType XmCDialogType unsigned char dynamic CG
- XmNhelpLabelString XmCHelpLabelString XmString dynamic CSG
- XmNlistItemCount XmCItemCount int 0 CSG
- XmNlistItems XmCItems XmStringTable NULL CSG
- XmNlistLabelString XmCListLabelString XmString dynamic CSG
- XmNlistVisibleItemCount XmCVisibleItemCount int dynamic CSG
- XmNminimizeButtons XmCMinimizeButtons Boolean False CSG
- XmNmustMatch XmCMustMatch Boolean False CSG
- XmNnoMatchCallback XmCCallback XtCallbackList NULL C
- XmNokCallback XmCCallback XtCallbackList NULL C
- XmNokLabelString XmCOkLabelString XmString dynamic CSG
- XmNselectionLabelString XmCSelectionLabelString XmString dynamic CSG
- XmNtextAccelerators XmCTextAccelerators XtAccelerators default C
- XmNtextColumns XmCColumns short dynamic CSG
- XmNtextString XmCTextString XmString "" CSG
-
-
- _X_m_N_a_p_p_l_y_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the user
- activates the _A_p_p_l_y button. The callback reason is
- _X_m_C_R__A_P_P_L_Y.
-
- _X_m_N_a_p_p_l_y_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label for the _A_p_p_l_y button. The
- default for this resource depends on the locale. In
- the C locale the default is "Apply".
-
- _X_m_N_c_a_n_c_e_l_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the user
- activates the _C_a_n_c_e_l button. The callback reason is
- _X_m_C_R__C_A_N_C_E_L.
-
- _X_m_N_c_a_n_c_e_l_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label for the _C_a_n_c_e_l button. The
- default for this resource depends on the locale. In
- the C locale the default is "Cancel".
-
- _X_m_N_c_h_i_l_d_P_l_a_c_e_m_e_n_t
- Specifies the placement of the work area child. The
- possible values are:
-
- +o _X_m_P_L_A_C_E__A_B_O_V_E__S_E_L_E_C_T_I_O_N - places the work area child
- above the Text area
-
- +o _X_m_P_L_A_C_E__B_E_L_O_W__S_E_L_E_C_T_I_O_N - places the work area child
- below the Text area
-
- +o _X_m_P_L_A_C_E__T_O_P - places the work area child above the List
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- area, and below a menubar, if one is present
-
- _X_m_N_d_i_a_l_o_g_T_y_p_e
- Determines the set of SelectionBox children widgets
- that are created and managed at initialization. The
- following are possible values:
-
- +o _X_m_D_I_A_L_O_G__P_R_O_M_P_T - all standard children except the list
- and list label are created, and all except the _A_p_p_l_y
- button are managed
-
- +o _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D - only the list, the selection label,
- and the text field are created and managed
-
- +o _X_m_D_I_A_L_O_G__S_E_L_E_C_T_I_O_N - all standard children are created
- and managed
-
- +o _X_m_D_I_A_L_O_G__F_I_L_E__S_E_L_E_C_T_I_O_N - all standard children are
- created and managed
-
- +o _X_m_D_I_A_L_O_G__W_O_R_K__A_R_E_A - all standard children are created,
- and all except the _A_p_p_l_y button are managed
-
- If the parent of the SelectionBox is a DialogShell, the
- default is _X_m_D_I_A_L_O_G__S_E_L_E_C_T_I_O_N; otherwise, the default is
- _X_m_D_I_A_L_O_G__W_O_R_K__A_R_E_A. _X_m_C_r_e_a_t_e_P_r_o_m_p_t_D_i_a_l_o_g and
- _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_D_i_a_l_o_g set and append this resource to the
- creation aaaarrrrgggglllliiiisssstttt supplied by the application. This resource
- cannot be modified after creation.
-
- _X_m_N_h_e_l_p_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label for the _H_e_l_p button. The
- default for this resource depends on the locale. In
- the C locale the default is "Help".
-
- _X_m_N_l_i_s_t_I_t_e_m_s
- Specifies the items in the SelectionBox list.
- _X_t_G_e_t_V_a_l_u_e_s for this resource returns the list items
- themselves, not a copy of the list items. The
- application must not free the returned items.
-
- _X_m_N_l_i_s_t_I_t_e_m_C_o_u_n_t
- Specifies the number of items in the SelectionBox list.
- The value must not be negative.
-
- _X_m_N_l_i_s_t_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label to appear above the
- SelectionBox list containing the selection items. The
- default for this resource depends on the locale. In
- the C locale the default is "Items" unless
- _X_m_N_d_i_a_l_o_g_T_y_p_e is _X_m_D_I_A_L_O_G__P_R_O_M_P_T; in that case the
- default is NULL.
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- _X_m_N_l_i_s_t_V_i_s_i_b_l_e_I_t_e_m_C_o_u_n_t
- Specifies the number of items displayed in the
- SelectionBox list. The value must be greater than 0
- unless _X_m_N_d_i_a_l_o_g_T_y_p_e is _X_m_D_I_A_L_O_G__P_R_O_M_P_T; in that case
- the value is always 0. The default is dynamic based on
- the height of the list.
-
- _X_m_N_m_i_n_i_m_i_z_e_B_u_t_t_o_n_s
- Sets the buttons to the width of the widest button and
- height of the tallest button if False. If True, button
- width and height are not modified.
-
- _X_m_N_m_u_s_t_M_a_t_c_h
- Specifies whether the selection widget should check if
- the user's selection in the text edit field has an
- exact match in the SelectionBox list when the _O_K button
- is activated. If the selection does not have an exact
- match, and _X_m_N_m_u_s_t_M_a_t_c_h is True, the _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
- callbacks are called. If the selection does have an
- exact match or if _X_m_N_m_u_s_t_M_a_t_c_h is False, _X_m_N_o_k_C_a_l_l_b_a_c_k
- callbacks are called.
-
- _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the user
- makes a selection from the text edit field that does
- not have an exact match with any of the items in the
- list box. The callback reason is _X_m_C_R__N_O__M_A_T_C_H.
- Callbacks in this list are called only if _X_m_N_m_u_s_t_M_a_t_c_h
- is true.
-
- _X_m_N_o_k_C_a_l_l_b_a_c_k
- Specifies the list of callbacks called when the user
- activates the _O_K button. The callback reason is
- _X_m_C_R__O_K. If the selection text does not match a list
- item, and _X_m_N_m_u_s_t_M_a_t_c_h is True, the _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
- callbacks are called instead.
-
- _X_m_N_o_k_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label for the _O_K button. The
- default for this resource depends on the locale. In
- the C locale the default is "OK".
-
- _X_m_N_s_e_l_e_c_t_i_o_n_L_a_b_e_l_S_t_r_i_n_g
- Specifies the string label for the selection text edit
- field. The default for this resource depends on the
- locale. In the C locale the default is "Selection".
-
- _X_m_N_t_e_x_t_A_c_c_e_l_e_r_a_t_o_r_s
- Specifies translations added to the Text widget child
- of the SelectionBox. The default includes bindings for
- the up and down keys for auto selection of list items.
- This resource is ignored if _X_m_N_a_c_c_e_l_e_r_a_t_o_r_s is
-
-
-
- Page 5 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- initialized to a nondefault value.
-
- _X_m_N_t_e_x_t_C_o_l_u_m_n_s
- Specifies the number of columns in the Text widget.
- The value must be greater than 0.
-
- _X_m_N_t_e_x_t_S_t_r_i_n_g
- Specifies the text in the text edit selection field.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- SelectionBox inherits behavior and resources from the
- following superclasses. For a complete description of each
- resource, refer to the man page for that superclass.
-
- XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _________________________________________________________________________________
- XmNallowOverlap XmCAllowOverlap Boolean True CSG
- XmNautoUnmanage XmCAutoUnmanage Boolean True CG
- XmNbuttonFontList XmCButtonFontList XmFontList dynamic CSG
- XmNcancelButton XmCWidget Widget dynamic SG
- XmNdefaultButton XmCWidget Widget dynamic SG
- XmNdefaultPosition XmCDefaultPosition Boolean True CSG
- XmNdialogStyle XmCDialogStyle unsigned char dynamic CSG
- XmNdialogTitle XmCDialogTitle XmString NULL CSG
- XmNfocusCallback XmCCallback XtCallbackList NULL C
- XmNlabelFontList XmCLabelFontList XmFontList dynamic CSG
- XmNmapCallback XmCCallback XtCallbackList NULL C
- XmNmarginHeight XmCMarginHeight Dimension 10 CSG
- XmNmarginWidth XmCMarginWidth Dimension 10 CSG
- XmNnoResize XmCNoResize Boolean False CSG
- XmNresizePolicy XmCResizePolicy unsigned char XmRESIZE_ANY CSG
- XmNshadowType XmCShadowType unsigned char XmSHADOW_OUT CSG
- XmNtextFontList XmCTextFontList XmFontList dynamic CSG
- XmNtextTranslations XmCTranslations XtTranslations NULL C
- XmNunmapCallback XmCCallback XtCallbackList NULL C
-
-
- XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _________________________________________________________________________________________________
- XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
- XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNforeground XmCForeground Pixel dynamic CSG
- XmNhelpCallback XmCCallback XtCallbackList NULL C
- XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
- XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
- XmNinitialFocus XmCInitialFocus Widget dynamic CSG
- XmNnavigationType XmCNavigationType XmNavigationType XmTAB_GROUP CSG
- XmNshadowThickness XmCShadowThickness Dimension dynamic CSG
-
-
-
-
-
- Page 6 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- XmNstringDirection XmCStringDirection XmStringDirection dynamic CG
- XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
- XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
- XmNtraversalOn XmCTraversalOn Boolean True CSG
- XmNunitType XmCUnitType unsigned char dynamic CSG
- XmNuserData XmCUserData XtPointer NULL CSG
-
-
- CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________
- XmNchildren XmCReadOnly WidgetList NULL G
- XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG
- XmNnumChildren XmCReadOnly Cardinal 0 G
-
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic N/A
- XmNancestorSensitive XmCSensitive Boolean dynamic G
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 0 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
- A pointer to the following structure is passed to each
- callback:
- typedef struct
- {
- int rrrreeeeaaaassssoooonnnn;
- _X_E_v_e_n_t **** eeeevvvveeeennnntttt;
- _X_m_S_t_r_i_n_g vvvvaaaalllluuuueeee;
- _i_n_t lllleeeennnnggggtttthhhh;
- } _X_m_S_e_l_e_c_t_i_o_n_B_o_x_C_a_l_l_b_a_c_k_S_t_r_u_c_t;
-
- rrrreeeeaaaassssoooonnnn
-
-
-
- Page 7 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- Indicates why the callback was invoked
-
- eeeevvvveeeennnntttt
- Points to the _X_E_v_e_n_t that triggered the callback
-
- vvvvaaaalllluuuueeee
- Indicates the _X_m_S_t_r_i_n_g value selected by the user from
- the SelectionBox list or entered into the SelectionBox
- text field
-
- lllleeeennnnggggtttthhhh
- Indicates the size in bytes of the _X_m_S_t_r_i_n_g value
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- XmSelectionBox inherits translations from XmBulletinBoard.
-
- AAAAcccccccceeeelllleeeerrrraaaattttoooorrrrssss
- The _X_m_N_t_e_x_t_A_c_c_e_l_e_r_a_t_o_r_s are added to the Text descendant of
- XmSelectionBox. The default accelerators are listed below.
- These accelerators may not directly correspond to a
- translation table.
- KUp: SelectionBoxUpOrDown(0)
- KDown: SelectionBoxUpOrDown(1)
- KBeginData: SelectionBoxUpOrDown(2)
- KEndData: SelectionBoxUpOrDown(3)
- KRestore: SelectionBoxRestore()
-
- AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
- The XmSelectionBox action routines are described below:
-
- _S_e_l_e_c_t_i_o_n_B_o_x_U_p_O_r_D_o_w_n(_0|_1|_2|_3):
- When called with a 0 argument, selects the previous
- item in the list and replaces the text with that item.
-
- When called with a 1 argument, selects the next item in the
- list and replaces the text with that item.
-
- When called with a 2 argument, selects the first item in the
- list and replaces the text with that item.
-
- When called with a 3 argument, selects the last item in the
- list and replaces the text with that item.
-
- _S_e_l_e_c_t_i_o_n_B_o_x_R_e_s_t_o_r_e():
- Replaces the text value with the list selection. If no
- item in the list is selected, clears the text.
-
-
-
-
-
-
-
-
-
- Page 8 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- AAAAddddddddiiiittttiiiioooonnnnaaaallll BBBBeeeehhhhaaaavvvviiiioooorrrr
- The SelectionBox widget has the additional behavior
- described below:
-
- _M_A_n_y _K_C_a_n_c_e_l:
- Calls the activate callbacks for the cancel button if
- it is sensitive. If no cancel button exists and the
- parent of the SelectionBox is a manager, passes the
- event to the parent.
-
- _K_A_c_t_i_v_a_t_e:
- Calls the activate callbacks for the button with the
- keyboard focus. If no button has the keyboard focus,
- calls the activate callbacks for the default button if
- it is sensitive. In a List widget or single-line Text
- widget, the List or Text action associated with
- _K_A_c_t_i_v_a_t_e is called before the SelectionBox actions
- associated with _K_A_c_t_i_v_a_t_e. In a multi-line Text
- widget, any _K_A_c_t_i_v_a_t_e event except _K_E_n_t_e_r calls the
- Text action associated with _K_A_c_t_i_v_a_t_e, then the
- SelectionBox actions associated with _K_A_c_t_i_v_a_t_e. If no
- button has the focus, no default button exists, and the
- parent of the SelectionBox is a manager, passes the
- event to the parent.
-
- <_O_K _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
- If _X_m_N_m_u_s_t_M_a_t_c_h is True and the text does not match an
- item in the file list, calls the _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
- callbacks with reason _X_m_C_R__N_O__M_A_T_C_H. Otherwise, calls
- the _X_m_N_o_k_C_a_l_l_b_a_c_k callbacks with reason _X_m_C_R__O_K.
-
- <_A_p_p_l_y _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
- Calls the _X_m_N_a_p_p_l_y_C_a_l_l_b_a_c_k callbacks with reason
- _X_m_C_R__A_P_P_L_Y.
-
- <_C_a_n_c_e_l _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
- Calls the _X_m_N_c_a_n_c_e_l_C_a_l_l_b_a_c_k callbacks with reason
- _X_m_C_R__C_A_N_C_E_L.
-
- <_H_e_l_p _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
- Calls the _X_m_N_h_e_l_p_C_a_l_l_b_a_c_k callbacks with reason
- _X_m_C_R__H_E_L_P.
-
- <_M_a_p_W_i_n_d_o_w>:
- Calls the callbacks for _X_m_N_m_a_p_C_a_l_l_b_a_c_k if the
- SelectionBox is a child of a Dialog shell.
-
- <_U_n_m_a_p_W_i_n_d_o_w>:
- Calls the callbacks for _X_m_N_u_n_m_a_p_C_a_l_l_b_a_c_k if the
- SelectionBox is the child of a DialogShell.
-
- VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
-
-
-
- PPPPaaaaggggeeee 9999 ((((pppprrrriiiinnnntttteeeedddd 11111111////11111111////00003333))))
-
-
-
-
-
-
- XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
-
-
-
- The bindings for virtual keys are vendor specific. For
- information about bindings for virtual buttons and keys, see
- _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_m_p_o_s_i_t_e(_3_X), _C_o_n_s_t_r_a_i_n_t(_3_X), _C_o_r_e(_3_X),
- _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d(_3_X), _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_B_o_x(_3_X),
- _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_D_i_a_l_o_g(_3_X), _X_m_C_r_e_a_t_e_P_r_o_m_p_t_D_i_a_l_o_g(_3_X),
- _X_m_M_a_n_a_g_e_r(_3_X), and _X_m_S_e_l_e_c_t_i_o_n_B_o_x_G_e_t_C_h_i_l_d(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 10 (printed 11/11/03)
-
-
-
-